<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="/web/js/vue2.js"></script>
    <script src="/web/js/axios.min.js"></script>
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
<div id="app">
    <h3>{{msg}}</h3>
    <i>登录者：{{buyer.name}}</i>
</div>

<script>
    const vm=new Vue({
        el:"#app",
        data(){
            return{
                msg:"hello",
                buyer:{
                    name:"",
                    tel:""
                }
            }
        },
        mounted(){
            this.buyer.name=JSON.parse(sessionStorage.getItem("buyer")).name;
        },
        methods:{

        }
    })
</script>

</body>
</html>